Skip to content

fix(fields): after a same-edit currency change, a pick's amounts stay and their notes follow the new currency - #37284

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36412-currency-change-notes
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36412-currency-change-notes

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes #36412

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户可见变化:在报价、订单、发票里选产品带出价格后,如果在同一次编辑中改了币种,价格不会被改动或清空,下方会说明这笔价格是按哪个币种带入的、记录现在是哪个币种;没带入的价格提示会跟着换成新币种;改成与产品价格相同的币种时,提示保留、价格仍空,并提示重新选取即可带入。
  • 为什么做:这是「选产品不跨币种抄价格」那张卡里最后一项(「保留金额并提示」及其 B 方案),替多币种单据的使用者补上改币种后的说明。
  • 出错会怎样:只影响价格下方的提示文字,不写入、不清除任何金额;手动输入的金额不显示提示;可以直接撤回这一个合并。
  • 要你做什么:无。

What changes

The ruling item on this card (comment 7118795825, 「保留金额并提示」) and its branch B (comment 7158109013), on both hosts: the line-item grid (GridFieldWidget) and the record form (LookupField with the declared pairs). Scope is bounded by ADR-0144 D2: new records, records with no saved lines, lines staged in the same edit, and declared pairs on the record's own amounts. Items 1–4 landed in #36918. With this PR the card's last open item is done.

  • Point 1: a currency change in the same edit never changes or clears a filled amount. Measured first. This already holds on main (057cedfa9b6): nothing writes an amount when the code changes. The new pins were run against main's source files, and every amount assertion passed there; the only failures were the note lines that come after them (see Tests). Pinned either way, on both hosts. This PR adds no write.
  • Point 2: an amount a pick copied gets a note once the currencies differ. judgePickWrites now records each amount it copies as CopiedAutofill (target, source, value, under: the code the target was in at the write). The plan gains the optional copied, absent when there is none. Each host keeps these beside the withheld values of the same pick. When drawing, it shows "Unit Price was copied as $100.00, but the record is now in EUR. Enter Unit Price in EUR if it should change." only when all of these hold (copiedAutofillNow): the field still holds that pick, the target still holds the copied value, and the code the target is in now is known and differs from under. A currency change back ends the note.
  • Point 3: a withheld note already shown refreshes to the record's new currency. withheldAutofillNow judges each shown withheld item again with crossCurrencyRefusal, using the picked amount's own currency (its from) against the target's currency as it is now. The note follows the new code, and its reason too: a code cleared reads "no currency is chosen".
  • Point 4: a hand-typed amount gets no note. Only a pick records a copied amount, and the note needs the target to still hold the copied value. So an amount typed by hand, or typed over a copied one, says nothing.
  • Branch B. When the record's currency turns to the picked amount's own, the re-judgement copies nothing. The item takes the new reason nowSameCurrency, the note stays and the cell stays empty: "Unit Price was not filled when it was picked. The record is now in USD: pick again to fill $100.00." A pick again fills it (pinned as the control on the record form). When the target still holds an earlier value (held), the sentence says to clear the field, then pick again (lookup.autofillNowSameCurrencyHeld, round 3).
  • "Now" on each host is the same context the pick used, with no picked row. On the grid that is gridAutofillCurrency on the current line, with columnCurrencies (a header-following line) or columnFields (the line's own code). On the record form it is currencyFor on the live record, followed parent included. So a code written later in the edit is read exactly as a pick would read it.
  • i18n: three sentences, lookup.autofillNowSameCurrency, lookup.autofillNowSameCurrencyHeld and lookup.autofillCopiedUnder, in all 11 packs (zh-Hant generated by gen:zh-hant) and in FIELD_DEFAULTS.
  • One changeset, .changeset/36412-currency-change-notes.md: @object-ui/fields and @object-ui/i18n, both patch. The fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 changeset is left untouched. @object-ui/plugin-form changes in its test file only, which is not published.

Clause-② rework: route (a), copied optional

At the seat's rework the first declaration, Clause-②: no, did not hold. Route (a) is taken; no route (b), nothing here needs copied to be required. LookupAutofillPlan.copied is now optional (copied?: CopiedAutofill[]). judgePickWrites leaves it out when the pick copied no amount under a judged currency, and every in-package reader treats absent as none (LookupField's two noteWithheld calls, GridFieldWidget's pick, planLookupAutofill's pass-through). A plan built without copied is still a plan, so nothing is narrowed. The published @object-ui/fields surface widens:

  • new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill;
  • the optional member LookupAutofillPlan.copied;
  • the WithheldAutofill.reason union gains nowSameCurrency, so code that switches over every reason gains one case.

The same declaration is in the changeset. Metadata-protocol: none stands: no spec key, value or metadata type changes. A pin asserts that a plan which copied no amount carries no copied.

Tests

Round 3 (the seat's S1, N1, N2 and N4), all under os-verify-lock:

  • Both pin files at dd0ebf7f96: Tests 71 passed (71). Two new pins hold the held branch B case on each host (grid: header USD over a line holding 80, then EUR; form: an overwrite: true pair over a typed 80 on a EUR quote, then USD). Each asserts the exact clear-then-pick-again sentence and that the earlier value stays. The grid branch B pin now ends with the N4 control: a pick again fills 100 and no note remains.
  • Ablation: the held arm in withheldAutofillMessage is deleted (ablation-replace --delete, restored to the HEAD blob 848e5fd1844c). Tests 2 failed, 9 passed: exactly the two held pins fail. The non-held branch B pins on both hosts stay green, so their wording is unchanged.
  • The three-package run at dd0ebf7f96 failed one test, all-locales-key-parity "placeholders match en in every pack": the first zh-Hans text of the new key named {{field}} three times against en's two, and zh-Hant was generated from it. Fixed in 315c0d8fef. At that head, packages/i18n/ gives Test Files 111 passed, Tests 2028 passed, 13 skipped. Only locale strings changed between the two heads; fields and plugin-form were green at dd0ebf7f96 (685 of 687 files passed, 1 skipped, and the one failure was that i18n test). type-check of the three packages exits 0 at 315c0d8fef.

Round 2 (the Clause-② rework), head a602513471, all under os-verify-lock: the same three-package run gives Test Files 686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861), VERDICT command-exit 0. type-check of the three packages exits 0. Ablations of the reworked lines, each restored to the HEAD blob e96dadd3fbba:

  • copied always present (return copiedAmounts.length > 0 ? { ...plan, copied: copiedAmounts } : plan; becomes return { ...plan, copied: copiedAmounts };): Tests 1 failed, 8 passed. The absent-means-none pin fails.
  • No copied note, re-run on the new head: Tests 3 failed, 6 passed. The copied note fails on both hosts, plus the pure pin.

Round 1 readings follow. Tests on head 482148532, all under os-verify-lock: pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/ packages/plugin-form/ packages/i18n/ gives Test Files 686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861), VERDICT command-exit 0. type-check of @object-ui/fields, @object-ui/plugin-form and @object-ui/i18n exits 0, after the closure build. Both pin files are in the tsconfig.test.json program (--listFiles: 1 hit each).

New pins, the point 1 measurement, and ablations
  • ObjectForm.lookupAutofill-28245.test.tsx, new describe "a same-edit currency change keeps amounts and says so", 4 tests through ObjectForm. (1) A USD quote picks a $100 product. Changed to EUR, it keeps 100 and shows the copied note with its exact text. Control: before the change there is no note, and changing back to USD ends it. (2) A JPY quote's withheld note names GBP and no longer JPY after the code becomes GBP, and the price stays empty. (3) Branch B: a EUR quote's withheld note reads exactly "Unit Price was not filled when it was picked. The record is now in USD: pick again to fill $100.00." once the code becomes USD, and the price stays empty. Control: the pick again fills 100 and no note remains. (4) A typed 55 gets no note through a currency change, and neither does 55 typed over a copied 100.
  • GridField.lookupAutofill-28245.test.tsx, new describe of the same name, 5 tests. The same four cases through GridField, with the header currency handed in as columnCurrencies and changed by a rerender, for a product priced in EUR. One more is pure: withheldAutofillNow follows the currency now, nowSameCurrency applies when it matches, and with no currency known the item is returned unchanged; copiedAutofillNow names a differing code only while the target holds the copied value. The Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 declared-pairs pin now also asserts copied (the price is recorded under the code the same pick wrote).
  • Point 1 measured on main's code. The five source files were restored to 057cedfa9b6 in the tree only, the -t ruling pins were run, and the files were restored with git checkout HEAD (git diff HEAD empty afterwards). Result: 7 failed, 2 passed. The two hand-typed pins passed. Both copied-amount pins failed on the note line after their amount assertion (ObjectForm line 745, GridField line 641): the amount kept its value through the currency change on main. The refresh and branch B pins failed on their note text, and the pure pin failed on the missing export. Point 1 has no implementing line to ablate: nothing writes an amount on a currency change, before or after this PR.
  • Ablations on the committed tree with scripts/ablation-replace.mjs (lookupAutofill.ts; vitest aliases @object-ui/* to src, so no dist sits between mutation and run), -t ruling, each restored to the HEAD blob 18535d11faef:
    • if (!now) return item; becomes return item; (no refresh): Tests 5 failed, 4 passed. Refresh and branch B on both hosts, plus the pure pin.
    • return to && to !== item.under ? to : undefined; becomes return undefined; (no copied note): Tests 3 failed, 6 passed. Copied note on both hosts, plus the pure pin.
    • if (!sameValue(current, item.value) || !now) return undefined; becomes if (!now) return undefined; (a typed-over amount keeps the note): Tests 3 failed, 6 passed. Hand-typed on both hosts, plus the pure pin.

Acceptance notes

  • Clause-②: yes (widening) (see the rework section above). The diff touches no packages/spec/** and no metadata. git grep finds LookupAutofillPlan only inside ui/packages/fields.
  • Branch B over a filled target (round 3, the seat's S1): a withheld value that carries held (a pick over a target that still holds an earlier value) now gets its own branch B sentence, lookup.autofillNowSameCurrencyHeld: "Unit Price was not filled when it was picked and still holds its earlier value. The record is now in USD: clear Unit Price, then pick again to fill $100.00." For a declared pair without overwrite, picking the same record again does not replace a value that record did not fill (the spec's overwrite rule), so the sentence says to clear the field first. Re-pick behaviour is unchanged.
  • A copied amount whose record's currency becomes unset or unreadable gets no note (no current code to name). Only a known, different code is named, as the ruling's example reads.
  • N9 (record-page editor re-renders): not measured. The new work per render is one re-judgement per shown note, and nothing runs when no pick left a note.

Verification

Gates

Read first, by risk: (1) judgeCopy, withheldAutofillNow and copiedAutofillNow in lookupAutofill.ts; (2) the note block at the end of LookupField.tsx (pickStands, currencyNow); (3) the per-row note block in GridFieldWidget.tsx (lineCurrencyNow).

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-form/src/ObjectForm.lookupAutofill-28245.test.tsx -t ruling passes 4 tests. In them, a USD quote picks a $100 product, changes its currency to EUR, keeps 100, and shows "Unit Price was copied as $100.00, but the record is now in EUR."

https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW

🤖 Generated with Claude Code


Generated by Claude Code

@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for the delta L1 and same-head contract review (2026-11-25T13:22Z): a602513471817e4928b183ace2358b14b4b7072d.

  • Checks at this head: 47 success, 15 skipped (all 15 expected per check-expected-skips, exit 0), 0 failed, 0 pending. mergeable_state: clean.
  • Size: 19 files, +511 / −36; not governed (0 of 19 paths hit the register); Fixes #36412. Metadata-protocol: none.
  • This round (Clause-② rework, route (a)): LookupAutofillPlan.copied is now optional (copied?: CopiedAutofill[]). judgePickWrites leaves it out when the pick copied no amount under a judged currency, and every in-package reader treats absent as none: LookupField's two noteWithheld calls, GridFieldWidget's pick, and planLookupAutofill's pass-through. A new pin asserts that a plan with no copied amount carries no copied key. Behaviour is unchanged from round 1.
  • Declaration: Clause-②: yes (widening), in both the changeset and the PR body. It names the new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill, the optional LookupAutofillPlan.copied, and nowSameCurrency added to the WithheldAutofill.reason union.
  • Evidence: vitest over fields, plugin-form and i18n: 686 test files passed, 1 skipped. Type-check exit 0. Two ablations on the reworked lines went red (1 and 3 failures) and were restored to the HEAD blob. 41 of 41 derived gates ran and exited 0.
  • Overlap: overlap-check VERDICT clean (including against feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a602513471817e4928b183ace2358b14b4b7072d
Local-runs: probe — the dispatch asked for the pins to be re-run and each ruling point ablated: the two pin files at this head in a throwaway worktree (69 passed, 9 of them the ruling pins), ten ablations each restored to the head blob, and two read-only probes (a grid re-pick after branch B, and the held case under branch B)

Face: declaration (Clause-②: yes (widening) on the PR body and on .changeset/36412-currency-change-notes.md). record-recognisers.mjs --paths on the 19 paths decides no face, so the changeset's line decides it. No arm reads (narrowing), so the owed tier is TIER_DEFAULT, not CONTRACT_REVIEW_TIER. No path in the diff hits a governed surface or packages/spec/src/**.

① Derived judgments

  • @object-ui/fields reaches lookupAutofill.ts through export * from './widgets/lookupAutofill.js' in src/index.tsx, so everything that file exports is published. The new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill widen the surface. Right.
  • LookupAutofillPlan.copied?: CopiedAutofill[] is optional, and judgePickWrites omits it when nothing was copied under a judged code. A plan built without it still type-checks. Every reader in the package defaults it: copied ?? [] twice in LookupField, copied = [] in GridFieldWidget, and a conditional spread in planLookupAutofill. The pure pin (not.toHaveProperty('copied')) holds this. It adds a member and requires nothing. Right.
  • WithheldAutofill.reason gains nowSameCurrency. Widening a union in output position can break a consumer that switches exhaustively, so I checked whether it narrows for consumers. It does not: (a) git grep at the head finds no consumer of WithheldAutofill or .reason outside ui/packages/fields. The one reader inside it, withheldAutofillMessage, is a ternary chain with a fallback, not an exhaustive switch, and it now handles the new arm. (b) Only the new withheldAutofillNow produces the arm. judgePickWrites, planDeclaredLookupAutofill and planLookupAutofill never return it, so an existing caller cannot see it at runtime. (c) The repo already treated this as additive: fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 added targetCurrencyUnread to this union and unread to AmountCurrency without a (narrowing) arm. (d) The changeset names the cost to a consumer that switches over every reason. So the declaration is yes (widening), not a narrowing. Right.
  • judgeCopy changes its return shape, but it is not exported. planLookupAutofill is not in the index's named GridField.js export list. Neither is on the surface. Right.
  • @object-ui/i18n gains lookup.autofillNowSameCurrency and lookup.autofillCopiedUnder in all 11 packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant). Each carries exactly {{field}}, {{amount}} and {{to}}. The English pair is mirrored in FIELD_DEFAULTS. This adds keys and removes none. Right.

② Semver level

  • @object-ui/fields patch and @object-ui/i18n patch, with Metadata-protocol: none. That is the level AGENTS.md sets for a widening outside the protocol, and no spec key, value or metadata type moves. @object-ui/plugin-form changes only in a test file, which is not published, so it correctly gets no entry. main is in Changesets pre mode (next); a patch entry is fine there.
  • The Clause-②: line is the same in the PR body and the changeset. The changeset's widening paragraph lists the same four exports, the optional member and the union arm that ① finds.

③ Boundary flags

  • open_questions: empty.
  • out_of_scope_findings, first entry (branch B over a filled target, "not filed"): answered below as S1.
  • out_of_scope_findings, second entry (a copied amount whose code becomes unset gets no note): answered. Point 2 of ruling 7118795825 names the record's current currency, and with none there is no code to name. This is acceptable as built, and the PR body says so.
  • SQL push-down: the diff adds no data read, no id materialisation and no join. Nothing to find.
  • Author: objectstack-fleet[bot], so there is no outside login to name.
  • S1 (should-fix) — For a withheld item that carries held, the branch B sentence tells the user to do something that does nothing. That item comes from a re-pick over a target an earlier pick filled. Once the record turns to the picked amount's currency, the note reads "…The record is now in EUR: pick again to fill €100.00. Unit Price still holds its earlier value." For a declared pair without overwrite, picking the same record again writes nothing, because declaredPickWrites skips a filled target that the previous record (now that same record) did not fill. The re-pick then clears the note, so the cell keeps the old amount and nothing explains why. I probed this read-only at this head: planDeclaredLookupAutofill with previous set to the picked record and the cell holding the earlier 50 returns {"patch":{},"withheld":[]}. The PR body and the dev report both record this case as "Noted, not filed". This PR adds the sentence, and it ships in 11 languages. Either of two fixes closes it: (a) in the held case, say to clear the field and then pick again, with a pin on both hosts; or (b) the seat files a follow-up card under Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 that names the case, and the PR body cites it.

Implemented-by: claude/issue-36412-currency-change-notes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head a602513471817e4928b183ace2358b14b4b7072d · 2026-11-25T13:41Z

  • Scope. PR fix(fields): after a same-edit currency change, a pick's amounts stay and their notes follow the new currency #37284 (card Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412): ruling 7118795825 「保留金额并提示」, all four points, and branch B 7158109013, on the line-item grid (GridFieldWidget) and the record form (LookupField with declared pairs). I read the whole net diff against merge base 057cedfa9b6: 19 files. The same-head contract review is posted beside this one at TIER_DEFAULT: the declaration face, no (narrowing) arm, so the seat does not need to re-run it at CONTRACT_REVIEW_TIER.
  • Pins re-run at this head. Throwaway worktree, closure built with OS_SKIP_DTS=1. Both pin files: 69 passed. With -t ruling: 9 passed, 5 on the grid and 4 on the form.
  • Point 1 (no amount changed or cleared): holds on both hosts, and no write is added. The hosts gain only note state (noteWithheld and setWithheldFills carry copied) and render rows. There is no new onAutofill, applyPatch or onChange call, and withheldAutofillNow and copiedAutofillNow are pure. The pins assert the amount through each currency change and back: grid unit_price stays 100 (EUR→USD→EUR); form unit_price keeps 100 (USD→EUR→USD). A withheld cell stays empty, and a typed 70 or 55 is unchanged. Ablation: I injected a write that clears a pick-copied amount on a currency change (the option the ruling did not take). Grid run: 1 failed, at GridField…test.tsx:640 (expected null to be 100). Form run: 1 failed, at ObjectForm…test.tsx:744 (expected '' to contain '100').
  • Point 2 (a copied amount is noted under its copied-under code and the code now): implemented and pinned on both hosts. judgeCopy records under from the target's code after this pick's writes, and the hosts show the note only while the pick and the copied value both stand and the code now differs. Ablations, one host at a time with that host's copiedShown emptied: grid run 1 failed (grid copied test); form run 1 failed (form copied test). The other host stayed green each time.
  • Point 3 (a shown withheld note refreshes): implemented and pinned on both hosts. Each host maps the shown items through withheldAutofillNow with the code now: gridAutofillCurrency on the current line, and currencyFor({}) on the live record. Ablation, with the .map(withheldAutofillNow…) line removed one host at a time: grid run 2 failed (refresh and branch B); form run 2 failed (the same two).
  • Point 4 (a hand-typed amount gets no note): pinned on both hosts. A typed amount was never picked, so it has no copied entry. A value typed over a copied amount fails the sameValue guard. Ablation, with the sameValue clause dropped from copiedAutofillNow: 3 failed (the hand-typed test on both hosts, plus the pure pin).
  • Branch B (note stays, cell stays empty, re-pick fills): holds, with no auto-fill. withheldAutofillNow returns only a re-judged item, and nothing writes. Ablations: with the nowSameCurrency arm returning item unchanged, 3 failed (branch B on both hosts, plus the pure pin). Then an auto-fill of amount on nowSameCurrency, injected one host at a time: grid run 1 failed and form run 1 failed, each its own host's branch B test. The note disappears once the cell is filled, so the note-text assertion catches it before the empty-cell assertion. The form pins re-pick as a control. A read-only grid probe (the same pick again after the header turns to EUR) also fills 100 and clears the note.
  • Widening. copied is optional and absent means none (pinned), so a producer narrows nothing. The nowSameCurrency arm does not narrow for consumers either. No repo consumer outside ui/packages/fields reads WithheldAutofill or its reason. The one reader inside the package (withheldAutofillMessage) is a ternary with a fallback and handles the arm. Only the new withheldAutofillNow emits it, so existing callers never see it at runtime. fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 set the precedent by adding targetCurrencyUnread to the same union as additive. The changeset names the cost of an exhaustive switch. Clause-②: yes (widening) is right.
  • i18n. The two new lookup.* keys are in all 11 packs. Placeholders match in every pack ({{field}}, {{amount}}, {{to}}). The English text is in FIELD_DEFAULTS too. The translations read correctly; zh-Hans and zh-Hant say 「记录现已改为 / 記錄現已改為」.
  • Changeset, sentence by sentence. The title, the scope sentence (new record, no saved lines, staged lines), the three behaviour bullets and their quoted strings match en.ts and the pins. "The note goes away when the currency changes back or someone edits the amount" is true (copiedAutofillNow). "A currency change never fills a field by itself" is true (see the ablation above). The widening paragraph matches ①. Both packages are patch with Metadata-protocol: none, which is right; plugin-form changes only a test.
  • 维护者速读, sentence by sentence. 用户可见变化: correct apart from N2. 为什么做: correct; this is the card's last open item. 出错会怎样: correct; no amount is written or cleared, a hand-typed amount gets no note, and the PR reverts cleanly. 要你做什么:无: correct.
  • Check-runs at this head. 62 runs: 47 success, 15 skipped, 0 failed. The combined status has 0 statuses. I could not take my own expected-skips reading: check-expected-skips --pr 37284 exits 3 (NOT MEASURED), because this checkout's ci.yml is not main's tip. I rely on the zone's exit-0 reading in 7163698064, and the 15 skipped names are the usual ui-only set (Test Core and its planner, Build Core, the dogfood and queue legs, the opt-in harnesses).
  • K. landing-k --pr 37284 exits 3: the last green run (45619303836) ran no Test Core shard, so no Affected-set diff base was printed. As a stand-in, git rev-list --count --first-parent gives 15 from merge base 057cedfa9b6 to origin/main 875ae40f85b, and 12 from GitHub's recorded base 622f3985fe5. The zone takes the reading at landing.
  • merge-tree and overlap. I ran the bare shared-clone probe (no driver) with both commits fetched: merge-tree --write-tree of 875ae40f85b and the head exits 0, tree ce68670af94. fix(fields): the fill-in dialog judges option visibleWhen on the record the write would leave #37264 (merged as 0ad44a32827) touches RequiredFieldsDialog.tsx, requiredWhenPrompt.ts, its test and its changeset. It shares no file and no code path with this PR. Since the merge base, main changed only the 11 locale packs among this PR's files (9 lines in en.ts, none of them lookup.*), and they merge clean.
  • Size. 19 files, +511/−36, or 547 changed lines. The 538 in the dispatch and in the PR's Verification block is the round-1 figure. With fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 (+644/−70, 714 lines) the card totals 1,261, under 3,000.
  • S1 (should-fix) — For a withheld item that carries held (a re-pick over a target an earlier pick filled), the branch B sentence gives an instruction that does nothing. After the record turns to the picked amount's currency, the note says "…pick again to fill €100.00. Unit Price still holds its earlier value." For a declared pair without overwrite, picking that record again writes nothing (declaredPickWrites skips a filled target that the previous record did not fill). It also clears the note, so the old amount stays and nothing explains why. I probed this read-only at this head: the re-pick plan is {"patch":{},"withheld":[]}. This PR adds the sentence (in 11 languages). The PR records the case as "Noted, not filed". Either fix closes it: (a) in the held case, say to clear the field and then pick again, pinned on both hosts; or (b) file a follow-up card under Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 that names the case, and cite it in the PR body.
  • N1 — The PR body's Verification block still says "Size: 19 files, +502/-36 (538 changed lines) … card totals 1,252", beside the correct round-2 line (547 and 1,261). Drop the stale line.
  • N2 — 维护者速读 says 「改回与产品价格相同的币种时」. Branch B covers a record that changes to the picked price's currency. If the record had been in that currency at the pick, the price would have been copied, so 「改回」 misdescribes the usual case. Write 「改成」.
  • N3 — The copied note names the copied-under currency only through the formatted amount ("copied as $100.00"). The ruling's example ("copied as USD 100") and the Showcase EUR invoice: a picked product copies its home-currency price into the line as euros; the edit form's subtotal shows no currency symbol #36249 sentence ({{amount}} in {{from}}) also name the code. Intl symbol display does tell codes apart per locale (CA$, US$), so the note is not wrong. It is only less explicit than the voice the ruling cites.
  • N4 — The grid has no re-pick control after branch B; only the form pins "a pick again fills it". The read-only probe above passes on the grid, so this is a missing pin, not a defect.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for the delta L1 (2026-11-25T15:11Z): 315c0d8fef558f75b8bad25dcbe847cd3e7151a2.

  • Checks at this head: 46 success, 15 skipped (all 15 expected per check-expected-skips, exit 0), 0 failed. One run of PR-body guards is cancelled; it was superseded by the rerun the body edit started, which is success. mergeable_state: clean.
  • Size: 19 files, +582 / −38 (620 changed lines; with fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 the card totals 1,334). Not governed. Clause-②: yes (widening), unchanged.
  • This round (L1 REWORK 7164164510, fix (a) for S1): a withheld item that carries held now gets its own branch B sentence, lookup.autofillNowSameCurrencyHeld: "…still holds its earlier value. The record is now in USD: clear Unit Price, then pick again to fill $100.00." The key is in all 11 packs with en's placeholders, and in FIELD_DEFAULTS. The changeset names it. The empty-cell branch B sentence and re-pick behaviour are unchanged.
    • Pinned on both hosts: the grid (header USD over a line holding 80, then EUR) and the form (an overwrite: true pair over a typed 80 on a EUR quote, then USD). Ablation with the held arm deleted: 2 failed / 9 passed, exactly the two held pins; the non-held branch B pins stay green. Restored to the HEAD blob.
    • N4: the grid branch B pin now ends with a pick-again control that fills 100 and clears the note. N1: the stale 538 / 1,252 line is dropped. N2: 「改回」 → 「改成」. N3 skipped.
  • Evidence: both pin files 71 passed; packages/i18n/ 111 files passed (a zh-Hans placeholder count was fixed in this head); fields, plugin-form and i18n type-check exit 0; 41 of 41 derived gates exit 0.
  • Overlap: overlap-check VERDICT clean.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 315c0d8fef558f75b8bad25dcbe847cd3e7151a2 · 2026-11-25T15:25Z

  • Scope (delta). This delta follows the REWORK at a602513471817e4928b183ace2358b14b4b7072d (7164164510). Two commits sit on that head with no merge of main: dd0ebf7f966 (the held sentence) and 315c0d8fef5 (the zh-Hans and zh-Hant field count). The delta touches 16 files, +77/−8: lookupAutofill.ts, FIELD_DEFAULTS, the 11 packs, both pin files and the changeset. The net diff against merge base 057cedfa9b6 is 19 files, +582/−38 (620 lines), the same 19 paths as before. The same-head contract review is posted beside this one at TIER_DEFAULT.
  • S1: closed (option a). withheldAutofillMessage now returns lookup.autofillNowSameCurrencyHeld exactly when the item carries held and its reason is nowSameCurrency. An item without held under nowSameCurrency keeps the original "pick again" sentence. A held item under any other reason keeps the reason sentence plus autofillKept. I ran both directions of that condition at this head, in a throwaway worktree, restoring the head blob each time. With the held arm deleted, 2 of 71 tests failed: exactly the two held pins (grid and form). With the held sentence returned for every nowSameCurrency item, 2 of 71 failed: the two non-held branch B pins (grid and form). So both sides of the condition are pinned on both hosts. I also probed the S1 shape read-only (a declared pair without overwrite, where an earlier pick filled 50 and a EUR 100 pick was then withheld on a USD record). The item is {"reason":"differs","held":50}. After the record turns to EUR, the note is the new held sentence. A bare re-pick plans {"patch":{},"withheld":[]}, as before. Once the field is cleared, withheldStillStands reads false, so the note goes away, and the re-pick plans {"unit_price":100}. The sentence's instruction works.
  • i18n. lookup.autofillNowSameCurrencyHeld is in all 11 packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant) and in FIELD_DEFAULTS. Each pack carries {{field}} twice, and {{amount}} and {{to}} once each, the same as en. The second commit fixed zh-Hans (it had three {{field}}), and the pack parity test now passes per the PR body. The translations say the same thing as en: clear the field, then pick again. The only reader is withheldAutofillMessage.
  • N1: closed. The stale "538 … 1,252" line is gone. The size line reads 19 files, +582/-38 (620 lines), card total 1,334. The API agrees (additions 582, deletions 38), and 620 + 714 = 1,334.
  • N2: closed. 速读 now reads 「改成与产品价格相同的币种时」.
  • N4: closed. The grid branch B pin now ends with a pick again that fills 100, with neither note left.
  • N3: open, optional. The zone skipped it, which the prior round allowed.
  • Pins at this head. Throwaway worktree with the closure built under OS_SKIP_DTS=1. Both pin files: 71 passed. With -t ruling: 11, 6 grid and 5 form. The worktree is removed.
  • Changeset, the changed sentences. The new branch B sentence quotes the en text exactly ("…clear Unit Price, then pick again to fill $100.00."). The key list now names three lookup.* sentences, which is right. See N5 for the "because" clause.
  • Check-runs at this head. 62 runs: 46 success, 15 skipped, and 1 cancelled. The cancelled run is PR-body guards job 139289409281 (run 45638241145). The body edit started a new pull_request run, 45638310537 (attempt 1, not a re-run of the first). Its job 139289691588 is success and finished after the cancel, so the newest run under that name is green. I read the expected skips from a worktree pinned to origin/main d88c41e51d6: check-expected-skips --pr 37284 gives OK, 15 of 15 in main's roster, exit 0. It lists the cancelled run under "other conclusions". l1-face flags two items. The changeset flag is @object-ui/plugin-form, but its only change is a test file, which does not ship, as last round. The all-checks flag is the cancelled run (N7). The floor checks are success.
  • merge-tree and overlap. git merge-tree --write-tree origin/main (d88c41e51d6) with the head exits 0, tree 55f0f791a6f. Since the merge base, main changed only the 11 locale packs among this PR's paths, and none of those lines are lookup.*. In the PR's packages, main also touched RequiredFieldsDialog.tsx and requiredWhenPrompt.ts (fix(fields): the fill-in dialog judges option visibleWhen on the record the write would leave #37264) and released-keys-removed.mjs. No code path is shared.
  • K. landing-k --pr 37284 exits 3 (CAN'T ANSWER). The last green run ran no Test Core shard, so no Affected-set diff base was printed. As a stand-in, rev-list --count --first-parent gives 22 from merge base 057cedfa9b6 to origin/main d88c41e51d6, and 19 from GitHub's base 622f3985fe5. Both are 15 or more. The shared-budget leg also fires: this PR touches ui/packages/i18n/src/locales/en.ts, and main changed it after the merge base (875ae40f85b, ff049430cc7).
  • Declaration. The card's claim 7159504946 read Clause-②: no while the PR body and changeset read yes (widening). The seat edited that claim in place through the relay; only its Clause-②: line changed (read-back identical), and readClause2Line now returns declared / yes / widening.
  • S2: closed (the seat corrected the claim line, above).
  • N5 — The changeset gives a reason that is too general: "because picking the same record again does not replace a value that record did not fill". That holds only for a declared pair without overwrite. For an overwrite: true pair and for the grid's same-named copy, a bare re-pick replaces the held value. Probed at this head, both plan {"unit_price":100}. Those are also the two shapes the new pins drive (the form's cn_ow_quote and the grid line holding 80). The sentence's instruction (clear, then pick) works in every shape, so the note is right. Only the changeset's reason over-reaches. Optional: scope the clause to "a pair that does not overwrite", or drop it.
  • N6 — The PR body's "Two-minute check" says the form -t ruling run "passes 4 tests". At this head it passes 5 (Tests 5 passed | 28 skipped), because the held pin is new.
  • N7 — l1-face and pr-state count the cancelled PR-body guards run as failed, since filter=latest returns one run per check suite. If the landing helper refuses on that reading, a relay re-run of run 45638241145 (rerun-failed.mjs) replaces it. Reading by name, the newest run is already success.
    No must-fix, no should-fix.
  • Landing: the zone lands. K is 22 (stand-in, at least 15), and the en.ts shared-budget leg also fires, so it merges main first and waits for the re-run to go green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 315c0d8fef558f75b8bad25dcbe847cd3e7151a2
Local-runs: probe — the dispatch asked for the pins to be re-run and the S1 fix ablated: the two pin files at this head in a throwaway worktree (71 passed), two ablations of the held condition each restored to the head blob, and one read-only probe of the held case across pair shapes

Face: declaration (Clause-②: yes (widening) on the PR body and on .changeset/36412-currency-change-notes.md). Neither carries a (narrowing) arm. The 19 paths are the same as the prior record's and hit no governed surface and no packages/spec/src/**, so the owed tier stays TIER_DEFAULT. The declaration face carries no ④. This is a delta over the PASS at a602513471817e4928b183ace2358b14b4b7072d (7164139343). The delta is two commits, 16 files, +77/−8.

① Derived judgments

  • @object-ui/i18n gains lookup.autofillNowSameCurrencyHeld in all 11 packs. Each carries {{field}} twice, and {{amount}} and {{to}} once each, the same as en. The package exports its packs and TranslationKeys = typeof en, so the key is published, and TranslationKeys grows by one key. That adds and removes nothing. The repo has treated a new key as a widening (the 18.x console changesets) and a removed key as breaking. Right.
  • @object-ui/fields: no export, type or signature changes in the delta. withheldAutofillMessage returns a different sentence for one input: an item with held under nowSameCurrency. Both the arm and the held field reach nowSameCurrency only through this PR, which has not been released, so no released output changes. The English text is mirrored in FIELD_DEFAULTS. Right.
  • The new key keeps the declaration a widening. Clause-②: yes (widening) is still right, and the changeset's widening paragraph now lists the three lookup.* sentences.

② Semver level

  • @object-ui/fields patch and @object-ui/i18n patch, with Metadata-protocol: none, as before. A new key and a new sentence are a widening outside the protocol. @object-ui/plugin-form still changes only a test file and correctly has no entry.

③ Boundary flags

  • S1: closed.
  • N1: closed.
  • N2: closed.
  • N4: closed.
  • N3: open, optional, not taken.
  • open_questions: none in the round-3 report (7165900569).
  • The changeset's new "because" clause is true for a declared pair without overwrite. It is not true for an overwrite: true pair or the grid's same-named copy, where a bare re-pick replaces the value (probed). The instruction is still right in every shape. Graded N5 in the L1 beside this record. It is a prose fix and does not affect the contract.
  • The card's newest Claim: (7159504946) reads declared / no through readClause2Line, against the PR's yes (widening). This is answered in the L1 beside this record (S2). It is the seat's claim line, not this PR's diff or body, and it moves no head.
  • SQL push-down: the delta adds no data read, no id materialisation and no join. Nothing to find.
  • Author: objectstack-fleet[bot], so there is no outside login to name.

Implemented-by: claude/issue-36412-currency-change-notes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64 · 2026-11-25T15:49Z

  • Merge-only delta over the ACCEPT 7166841999 at 315c0d8f. Head 7f0f3fb7 is pr_update_branch's merge commit, with parents 315c0d8f and main d88c41e5.
  • The PR's own change is byte-identical. The diff from the old merge base 057cedfa to 315c0d8f and the diff from the new merge base d88c41e5 to 7f0f3fb7 carry the same changed lines: 19 files, +582/−38. The en.ts change on main merged in without conflict.
  • Check-runs at head: 45 success, 13 skipped, 0 failed, none cancelled. git merge-tree against current origin/main is clean.
  • The claim reads declared / yes / widening (7159504946). A same-head TIER_DEFAULT record reading PASS is posted beside this one.
  • No must-fix, no should-fix.
  • Landing: the zone readies and enqueues it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64
Local-runs: none
Scope: the declaration face of PR #37284 (Clause-②: yes (widening))

① Derived judgments

  • This is a merge-only delta over the PASS 7166864756 at 315c0d8f. Head 7f0f3fb7 merges main d88c41e5 into 315c0d8f. The PR's own changed lines are byte-identical across the merge: 19 files, +582/−38. Every judgment of that record stands.

② Semver level

  • Unchanged: Clause-②: yes (widening), Metadata-protocol: none, patch.

③ Boundary flags

  • None new. Check-runs at this head: 45 success, 13 skipped, 0 failed. git merge-tree against current origin/main is clean.

④ Design judgment

  • Holds as at 315c0d8f.

Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T15:52Z): head 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64, on the merge-only L1 ACCEPT 7167361139 and the same-head contract review PASS 7167374282 (TIER_DEFAULT, Clause-②: yes (widening)). They follow the ACCEPT 7166841999 and the PASS 7166864756 at 315c0d8f.

Probe Reading
check-governed-merges.mjs --pr 37284 NOT governed: 0 of 19 paths hit the register
Check-runs at this head 45 success · 13 expected skip (check-expected-skips exit 0) · 0 failed · none cancelled
Landing K about 22 at 315c0d8f, and the en.ts shared-budget leg fired, so main was merged first (pr_update_branch, relay run 45645248947). The PR's own diff is byte-identical across the merge (19 files, +582/−38).

There is no narrowing arm, so no maintainer gate applies. The optional nits N3, N5 and N6 are not taken.

State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #36412 closes by Fixes #36412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants